#ifndef SURFACE_H
#define SURFACE_H
#include "Globals.h"

class CSurface
{
private:
	char* fileName;
	RECT m_rSize;
	LPDIRECT3DSURFACE9 m_pSurface;
	LPDIRECT3DSURFACE9 m_pBackBuffer;
	D3DXIMAGE_INFO m_Info;
	LPDIRECT3DDEVICE9 m_pDevice;
public:
	CSurface();
	CSurface(char* _fileName);
	static CSurface* create(char* _fileName);
	~CSurface();
	D3DXIMAGE_INFO getInfo();
	void Load();
	void Draw(const RECT* sRect, const RECT* dRect);
	void Draw(int x, int y);
};

#endif